package main

import (
	"common/middleware"
	"common/web"
	"github.com/gin-gonic/gin"
)

func main() {

	engine := gin.Default()

	//中间件注册
	middleware.SetUpMiddleware(engine)

	//路由注册
	web.SetUpRouter(engine)

	err := engine.Run(":8088")
	if err != nil {
		return
	}

}
